//
//  ForecastSchedule.h
//  iMed
//

// This is a time-ordered array of RXEvents, which represents the forecasts
// of what's to be taken when

//  Created by Barry Press on 10/25/09.
//  Copyright 2009 Barry Press. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "RXEvent.h"
#import "Constants.h"


@interface ForecastSchedule : NSObject {
	NSMutableArray *rxevents;
}

- (RXEvent*)createRXEventForRX:(RX*)anRX withDate:(NSDate*)aDate;
- (void)removeObjectsContainingRX:(RX*)anRX;
- (NSTimeInterval)updateForecastsReturningRXEvents:(NSArray**)pRXEvent;
- (void)textOutputScheduleToView:(NSView*)view withDataset:(DataSet*)ds;

- (void)addObject:(RXEvent*)anObject;
- (int)count;
- (RXEvent*)objectAtIndex:(int)index;
- (void)removeAllObjects;
- (void)removeObject:(RXEvent*)anObject;


@end
